console.log(module.exports===exports);

const circle =require("./commonjs_circle");
console.log(`圆的面积： ${circle.area(4)}`);

const circle_area =require("./commonjs_circle").area;
console.log(`圆的面积： ${circle_area(4)}`);

const {area} =require("./commonjs_circle");
console.log(`圆的面积： ${area(4)}`);

const square =require("./commonjs_square");
console.log(`正方形的面积： ${square.area(4)}`);

const {area: square_area} =require("./commonjs_square");
console.log(`正方形的面积： ${square_area(4)}`);